from django.urls import path, re_path
from .views import *

# from django.views.decorators.cache import cache_page
urlpatterns = [
    path('login/', login),
    path('logout/', logout),
    path('index/', index),
    path('getcode/', getcode),
    path('getres/', getres),
    # path('index/', cache_page(index)),
    path('store/', store),
    path('goods/', goods),
    path('goodsnumapi/', goodsnumapi),
    path('orders/', orders),
    path('statistics_goods/', statistics_goods),
    path('statistics_orders/', statistics_orders),
    path('register/', register),
    path('userinfo/', userinfo),
    # path('getgoodsname/', getgoodsname),
    # path('updategoods/', updategoods),
    # re_path('middlewaretest/(?P<version>\d+)/', middlewaretest),
    # path('goodsview/', csrf_exempt(GoodsView.as_view())),
]
